<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('修改结算状态')" />
</head>
<body class="white-bg">
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
    <form class="form-horizontal m" id="form-agentInfo-updateTaxStatus">
        <div class="form-group">
            <label class="col-sm-3 control-label">代理编号：</label>
            <div class="col-sm-8">
                <input class="form-control" type="text" readonly="true" name="agentNum" th:value="${agentInfo?.agentNum}"/>
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">代理商名称：</label>
            <div class="col-sm-8">
                <input class="form-control" type="text" readonly="true" name="agentName" th:value="${agentInfo?.agentName}"/>
            </div>
        </div>
        <div>
            <div class="form-group" th:if="*{agentInfo?.is_tax+'' == '0'}">
                <label class="col-sm-3 control-label" style="margin-top: 15px;">是否计税：</label>
                <div class="col-sm-8" >
                    <label style="text-align: center"> <input type="radio"  name="is_tax" value="0" checked="checked"/> 否 </label>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                    <label style="margin-top: 5px;"> <input type="radio"  name="is_tax" value="1"/> 是</label>
                </div>
        </div>
        <div class="form-group" th:if="*{agentInfo?.is_tax+'' == '1'}">
            <label class="col-sm-3 control-label">是否计税：</label>
            <div class="col-sm-8" >
                <label style="text-align: center"> <input type="radio"  name="is_tax" value="0"/> 否 </label>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                <label style="margin-top: 5px;"> <input type="radio"  name="is_tax" value="1" checked="checked"/> 是</label>
            </div>
        </div>
        </div>
    </form>
</div>
<th:block th:include="include :: footer" />
<script type="text/javascript">
    var prefix = ctx + "agentInfo/agentInfo";
    $("#form-agentInfo-resetPwd").validate({
        rules:{
            password:{
                required:true,
                minlength: 5,
                maxlength: 20
            },
        },
        focusCleanup: true
    });

    function submitHandler() {
        if ($.validate.form()) {
            $.operate.save(prefix + "/updateAgent", $('#form-agentInfo-updateTaxStatus').serialize());
        }
    }
</script>
</body>

</html>
